# This file was created automatically by SWIG 1.3.27.
# Don't modify this file, modify the SWIG interface instead.

import _pykondo

# This file is compatible with both classic and new-style classes.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "this"):
        if isinstance(value, class_type):
            self.__dict__[name] = value.this
            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
            del value.thisown
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name) or (name == "thisown"):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types



kondo_read_analog = _pykondo.kondo_read_analog
RCB4_SECOND = _pykondo.RCB4_SECOND
RCB4_15MS = _pykondo.RCB4_15MS
RCB4_50MS = _pykondo.RCB4_50MS
RCB4_USB_VID = _pykondo.RCB4_USB_VID
RCB4_USB_PID = _pykondo.RCB4_USB_PID
RCB4_BAUD = _pykondo.RCB4_BAUD
RCB4_SWAP_SIZE = _pykondo.RCB4_SWAP_SIZE
RCB4_RX_TIMEOUT = _pykondo.RCB4_RX_TIMEOUT
RCB4_ACK_BYTE = _pykondo.RCB4_ACK_BYTE
RCB4_NCK_BYTE = _pykondo.RCB4_NCK_BYTE
RCB4_CMD_ACK = _pykondo.RCB4_CMD_ACK
RCB4_CMD_MOV = _pykondo.RCB4_CMD_MOV
RCB4_CMD_CALL = _pykondo.RCB4_CMD_CALL
RCB4_CMD_VERS = _pykondo.RCB4_CMD_VERS
RCB4_CMD_ICS = _pykondo.RCB4_CMD_ICS
RCB4_DEV_RAM = _pykondo.RCB4_DEV_RAM
RCB4_DEV_DEV = _pykondo.RCB4_DEV_DEV
RCB4_DEV_COM = _pykondo.RCB4_DEV_COM
RCB4_DEV_ROM = _pykondo.RCB4_DEV_ROM
RCB4_RAM_TO_COM = _pykondo.RCB4_RAM_TO_COM
RCB4_COM_TO_RAM = _pykondo.RCB4_COM_TO_RAM
RCB4_OPT_BYTES = _pykondo.RCB4_OPT_BYTES
RCB4_OPT_SIO = _pykondo.RCB4_OPT_SIO
RCB4_OPT_EEPROM = _pykondo.RCB4_OPT_EEPROM
RCB4_OPT_RESP = _pykondo.RCB4_OPT_RESP
RCB4_OPT_VEC = _pykondo.RCB4_OPT_VEC
RCB4_OPT_FRAME_10MS = _pykondo.RCB4_OPT_FRAME_10MS
RCB4_OPT_FRAME_20MS = _pykondo.RCB4_OPT_FRAME_20MS
RCB4_OPT_FRAME_15MS = _pykondo.RCB4_OPT_FRAME_15MS
RCB4_OPT_FRAME_25MS = _pykondo.RCB4_OPT_FRAME_25MS
RCB4_OPT_COM_BAUD_125200 = _pykondo.RCB4_OPT_COM_BAUD_125200
RCB4_OPT_COM_BAUD_625000 = _pykondo.RCB4_OPT_COM_BAUD_625000
RCB4_OPT_COM_BAUD_1250000 = _pykondo.RCB4_OPT_COM_BAUD_1250000
RCB4_OPT_ZERO = _pykondo.RCB4_OPT_ZERO
RCB4_OPT_CARRY = _pykondo.RCB4_OPT_CARRY
RCB4_OPT_ERROR = _pykondo.RCB4_OPT_ERROR
RCB4_OPT_ICS_BAUD_125200 = _pykondo.RCB4_OPT_ICS_BAUD_125200
RCB4_OPT_ICS_BAUD_625000 = _pykondo.RCB4_OPT_ICS_BAUD_625000
RCB4_OPT_ICS_BAUD_1250000 = _pykondo.RCB4_OPT_ICS_BAUD_1250000
RCB4_OPT_GREEN_LED = _pykondo.RCB4_OPT_GREEN_LED
RCB4_OPT_LOW = _pykondo.RCB4_OPT_LOW
RCB4_OPT_HIGH = _pykondo.RCB4_OPT_HIGH
RCB4_ADDR_OPT = _pykondo.RCB4_ADDR_OPT
RCB4_ADDR_PGC = _pykondo.RCB4_ADDR_PGC
RCB4_ADDR_EEPROM_FLAG = _pykondo.RCB4_ADDR_EEPROM_FLAG
RCB4_ADDR_AD_THRESH_BASE = _pykondo.RCB4_ADDR_AD_THRESH_BASE
RCB4_ADDR_AD_READ_BASE = _pykondo.RCB4_ADDR_AD_READ_BASE
RCB4_NUM_ANALOGS = _pykondo.RCB4_NUM_ANALOGS
RCB4_ADDR_PIO_SET = _pykondo.RCB4_ADDR_PIO_SET
RCB4_ADDR_PIO_OUTPUT = _pykondo.RCB4_ADDR_PIO_OUTPUT
RCB4_ADDR_TIMER_0 = _pykondo.RCB4_ADDR_TIMER_0
RCB4_ADDR_TIMER_1 = _pykondo.RCB4_ADDR_TIMER_1
RCB4_ADDR_TIMER_2 = _pykondo.RCB4_ADDR_TIMER_2
RCB4_ADDR_TIMER_3 = _pykondo.RCB4_ADDR_TIMER_3
RCB4_ADDR_ICS_BASE = _pykondo.RCB4_ADDR_ICS_BASE
RCB4_NUM_ICS = _pykondo.RCB4_NUM_ICS
RCB4_ADDR_MAIN = _pykondo.RCB4_ADDR_MAIN
RCB4_ADDR_SERVO = _pykondo.RCB4_ADDR_SERVO
RCB4_SERVO_DATA_SIZE = _pykondo.RCB4_SERVO_DATA_SIZE
RCB4_NUM_SERVOS = _pykondo.RCB4_NUM_SERVOS
RCB4_ADDR_KRI = _pykondo.RCB4_ADDR_KRI
RCB4_ADDR_BTN_L = _pykondo.RCB4_ADDR_BTN_L
RCB4_ADDR_BTN_M = _pykondo.RCB4_ADDR_BTN_M
RCB4_ADDR_BTN_H = _pykondo.RCB4_ADDR_BTN_H
RCB4_ADDR_MOT_BASE = _pykondo.RCB4_ADDR_MOT_BASE
RCB4_MOT_SIZE = _pykondo.RCB4_MOT_SIZE
RCB4_MOT_MAX = _pykondo.RCB4_MOT_MAX
RCB4_SERVO_ID_OFFSET = _pykondo.RCB4_SERVO_ID_OFFSET
RCB4_SERVO_SETPOS_OFFSET = _pykondo.RCB4_SERVO_SETPOS_OFFSET
RCB4_SERVO_POS_OFFSET = _pykondo.RCB4_SERVO_POS_OFFSET
RCB4_SERVO_TRIM_OFFSET = _pykondo.RCB4_SERVO_TRIM_OFFSET
RCB4_ADDR_COUNTER_BASE = _pykondo.RCB4_ADDR_COUNTER_BASE
RCB4_NUM_COUNTERS = _pykondo.RCB4_NUM_COUNTERS
RCB4_BTN_NP = _pykondo.RCB4_BTN_NP
RCB4_BTN_LU = _pykondo.RCB4_BTN_LU
RCB4_BTN_LD = _pykondo.RCB4_BTN_LD
RCB4_BTN_LR = _pykondo.RCB4_BTN_LR
RCB4_BTN_LL = _pykondo.RCB4_BTN_LL
RCB4_BTN_RU = _pykondo.RCB4_BTN_RU
RCB4_BTN_RD = _pykondo.RCB4_BTN_RD
RCB4_BTN_RR = _pykondo.RCB4_BTN_RR
RCB4_BTN_RL = _pykondo.RCB4_BTN_RL
RCB4_BTN_S1 = _pykondo.RCB4_BTN_S1
RCB4_BTN_S2 = _pykondo.RCB4_BTN_S2
RCB4_BTN_S3 = _pykondo.RCB4_BTN_S3
RCB4_BTN_S4 = _pykondo.RCB4_BTN_S4
class KondoInstance(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, KondoInstance, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, KondoInstance, name)
    def __repr__(self):
        return "<%s.%s; proxy of C KondoInstance instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
    __swig_setmethods__["ftdic"] = _pykondo.KondoInstance_ftdic_set
    __swig_getmethods__["ftdic"] = _pykondo.KondoInstance_ftdic_get
    if _newclass:ftdic = property(_pykondo.KondoInstance_ftdic_get, _pykondo.KondoInstance_ftdic_set)
    __swig_setmethods__["swap"] = _pykondo.KondoInstance_swap_set
    __swig_getmethods__["swap"] = _pykondo.KondoInstance_swap_get
    if _newclass:swap = property(_pykondo.KondoInstance_swap_get, _pykondo.KondoInstance_swap_set)
    __swig_setmethods__["error"] = _pykondo.KondoInstance_error_set
    __swig_getmethods__["error"] = _pykondo.KondoInstance_error_get
    if _newclass:error = property(_pykondo.KondoInstance_error_get, _pykondo.KondoInstance_error_set)
    __swig_setmethods__["opt"] = _pykondo.KondoInstance_opt_set
    __swig_getmethods__["opt"] = _pykondo.KondoInstance_opt_get
    if _newclass:opt = property(_pykondo.KondoInstance_opt_get, _pykondo.KondoInstance_opt_set)
    __swig_setmethods__["debug"] = _pykondo.KondoInstance_debug_set
    __swig_getmethods__["debug"] = _pykondo.KondoInstance_debug_get
    if _newclass:debug = property(_pykondo.KondoInstance_debug_get, _pykondo.KondoInstance_debug_set)
    def __init__(self, *args):
        _swig_setattr(self, KondoInstance, 'this', _pykondo.new_KondoInstance(*args))
        _swig_setattr(self, KondoInstance, 'thisown', 1)
    def __del__(self, destroy=_pykondo.delete_KondoInstance):
        try:
            if self.thisown: destroy(self)
        except: pass


class KondoInstancePtr(KondoInstance):
    def __init__(self, this):
        _swig_setattr(self, KondoInstance, 'this', this)
        if not hasattr(self,"thisown"): _swig_setattr(self, KondoInstance, 'thisown', 0)
        self.__class__ = KondoInstance
_pykondo.KondoInstance_swigregister(KondoInstancePtr)


kondo_init = _pykondo.kondo_init

kondo_init_custom = _pykondo.kondo_init_custom

kondo_close = _pykondo.kondo_close

kondo_write = _pykondo.kondo_write

kondo_read = _pykondo.kondo_read

kondo_read_timeout = _pykondo.kondo_read_timeout

kondo_purge = _pykondo.kondo_purge

kondo_trx = _pykondo.kondo_trx

kondo_ack = _pykondo.kondo_ack

kondo_get_options = _pykondo.kondo_get_options

kondo_play_motion = _pykondo.kondo_play_motion

kondo_stop_motion = _pykondo.kondo_stop_motion

kondo_krc3_buttons = _pykondo.kondo_krc3_buttons

kondo_set_pio_direction = _pykondo.kondo_set_pio_direction

kondo_get_pio_direction = _pykondo.kondo_get_pio_direction

kondo_read_pio = _pykondo.kondo_read_pio

kondo_write_pio = _pykondo.kondo_write_pio

kondo_set_counter = _pykondo.kondo_set_counter

kondo_get_counter = _pykondo.kondo_get_counter

kondo_send_ics_pos = _pykondo.kondo_send_ics_pos

kondo_get_servo_data = _pykondo.kondo_get_servo_data

kondo_get_servo_trim = _pykondo.kondo_get_servo_trim

kondo_get_servo_setpos = _pykondo.kondo_get_servo_setpos

kondo_get_servo_pos = _pykondo.kondo_get_servo_pos

kondo_get_servo_id = _pykondo.kondo_get_servo_id

kondo_checksum = _pykondo.kondo_checksum

kondo_verify_checksum = _pykondo.kondo_verify_checksum

kondo_load_asciihex = _pykondo.kondo_load_asciihex
ICS_BAUD = _pykondo.ICS_BAUD
ICS_USB_VID = _pykondo.ICS_USB_VID
ICS_USB_PID = _pykondo.ICS_USB_PID
ICS_RX_TIMEOUT = _pykondo.ICS_RX_TIMEOUT
ICS_POS_TIMEOUT = _pykondo.ICS_POS_TIMEOUT
ICS_GET_TIMEOUT = _pykondo.ICS_GET_TIMEOUT
ICS_SET_TIMEOUT = _pykondo.ICS_SET_TIMEOUT
ICS_ID_TIMEOUT = _pykondo.ICS_ID_TIMEOUT
ICS_CMD_POS = _pykondo.ICS_CMD_POS
ICS_CMD_GET = _pykondo.ICS_CMD_GET
ICS_CMD_SET = _pykondo.ICS_CMD_SET
ICS_CMD_ID = _pykondo.ICS_CMD_ID
ICS_SC_EEPROM = _pykondo.ICS_SC_EEPROM
ICS_SC_STRETCH = _pykondo.ICS_SC_STRETCH
ICS_SC_SPEED = _pykondo.ICS_SC_SPEED
ICS_SC_CURRENT = _pykondo.ICS_SC_CURRENT
ICS_SC_READ = _pykondo.ICS_SC_READ
ICS_SC_WRITE = _pykondo.ICS_SC_WRITE
class ICSData(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ICSData, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ICSData, name)
    def __repr__(self):
        return "<%s.%s; proxy of C ICSData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
    __swig_setmethods__["ftdic"] = _pykondo.ICSData_ftdic_set
    __swig_getmethods__["ftdic"] = _pykondo.ICSData_ftdic_get
    if _newclass:ftdic = property(_pykondo.ICSData_ftdic_get, _pykondo.ICSData_ftdic_set)
    __swig_setmethods__["swap"] = _pykondo.ICSData_swap_set
    __swig_getmethods__["swap"] = _pykondo.ICSData_swap_get
    if _newclass:swap = property(_pykondo.ICSData_swap_get, _pykondo.ICSData_swap_set)
    __swig_setmethods__["error"] = _pykondo.ICSData_error_set
    __swig_getmethods__["error"] = _pykondo.ICSData_error_get
    if _newclass:error = property(_pykondo.ICSData_error_get, _pykondo.ICSData_error_set)
    __swig_setmethods__["debug"] = _pykondo.ICSData_debug_set
    __swig_getmethods__["debug"] = _pykondo.ICSData_debug_get
    if _newclass:debug = property(_pykondo.ICSData_debug_get, _pykondo.ICSData_debug_set)
    def __init__(self, *args):
        _swig_setattr(self, ICSData, 'this', _pykondo.new_ICSData(*args))
        _swig_setattr(self, ICSData, 'thisown', 1)
    def __del__(self, destroy=_pykondo.delete_ICSData):
        try:
            if self.thisown: destroy(self)
        except: pass


class ICSDataPtr(ICSData):
    def __init__(self, this):
        _swig_setattr(self, ICSData, 'this', this)
        if not hasattr(self,"thisown"): _swig_setattr(self, ICSData, 'thisown', 0)
        self.__class__ = ICSData
_pykondo.ICSData_swigregister(ICSDataPtr)


ics_init = _pykondo.ics_init

ics_close = _pykondo.ics_close

ics_write = _pykondo.ics_write

ics_read = _pykondo.ics_read

ics_read_timeout = _pykondo.ics_read_timeout

ics_purge = _pykondo.ics_purge

ics_trx = _pykondo.ics_trx

ics_trx_timeout = _pykondo.ics_trx_timeout

ics_pos = _pykondo.ics_pos

ics_hold = _pykondo.ics_hold

ics_free = _pykondo.ics_free

ics_get_stretch = _pykondo.ics_get_stretch

ics_get_speed = _pykondo.ics_get_speed

ics_get_current = _pykondo.ics_get_current

ics_set_stretch = _pykondo.ics_set_stretch

ics_set_speed = _pykondo.ics_set_speed

ics_set_current_limit = _pykondo.ics_set_current_limit

ics_get_id = _pykondo.ics_get_id

ics_set_id = _pykondo.ics_set_id


